<div class="tableToolbar">
    <div class="coll-md-8" id="addInput">
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="真实姓名" ng-model="ctrlScope.itemsearch.realname">
        </div>
        <div class="coll-md-2">
            <input type="text" class='search' placeholder="手机号" ng-model="ctrlScope.itemsearch.mobile">
        </div>
        <div class="coll-md-1">
            <div class="coll-md-10 triangle">
                <select class="form-control" ng-model="ctrlScope.itemsearch.status">
                    <option selected disabled hidden value="">状态</option>
                    <option value="0">未使用</option>
                    <option value="1">已使用</option>
                </select>
            </div>
        </div>
        <div class="coll-md-2">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">
        </div>
    </div>
    <div class="coll-md-2">
        <input type="button" class="bttn pos-right"  ng-click="addOrderModal()" value="新建">
    </div>
</div>
<table ui-table="orderParams">
    <thead>
    <tr>
        <th>ID</th>
        <th>手机号码</th>
        <th>真实姓名</th>
        <th>状态</th>
        <th>物品奖励</th>
        <th>来源</th>
        <th>抽奖时间</th>
        <th>添加时间</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td>{{item.id}}</td>
        <td>{{item.mobile}}</td>
        <td>{{item.realname}}</td>
        <td>{{item.status|appointstatus}}</td>
        <td>{{item.goodsName}}</td>
        <!--<td>{{item.expiredTime | date:'yyyy-MM-dd  HH:mm:ss'}}</td>-->
        <td>{{item.way}}</td>
        <td>{{item.lotteryTime | date:'yyyy-MM-dd  HH:mm:ss'}}</td>
        <td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
    </tr>
    </tbody>
</table>
<modal title="新建" visible="addModal">
    <form class="form-horizontal" role="form" name="myForm" ng-submit="saveSubmit(myForm.$valid)" novalidate>
        <div class="form-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">手机号码：</label>
                        <div class="col-md-8">
                            <input type="text" class="form-control" ng-model="ctrlScope.add.mobile" required>
                        </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label class="control-label col-md-4">物品：</label>

                        <div class="col-md-8">
                            <select class="form-control" ng-model="ctrlScope.add.goodsId">
                                <option selected disabled hidden value="">请选择</option>
                                <option ng-repeat="item in object" value="{{item.id}}">{{item.goodsName}}</option>
                            </select>
                        </div>
                    </div>
                </div>
                </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-click="addAppoint()" ng-disabled="myForm.$invalid">保存</button>
            </div>

        </div>
    </form>
</modal>
